package com.cooperate.fly.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.cooperate.fly.bo.TMatrixX;

@Repository
public interface TMatrixXMapper {
	int updateValue(@Param("caseId") Integer caseId,@Param("fieldId") Integer fieldId,@Param("xValue")String xValue);
    int deleteByPrimaryKey(Integer id);

    int insert(TMatrixX record);

    int insertSelective(TMatrixX record);

    TMatrixX selectByPrimaryKey(Integer id);
    List<TMatrixX> selectByFid(Integer fid);

    TMatrixX selectByCaseIdAndFieldId(@Param("caseId") Integer caseId, @Param("fieldId") Integer fieldId);

    int updateByPrimaryKeySelective(TMatrixX record);

    int updateByPrimaryKeyWithBLOBs(TMatrixX record);

    int updateByPrimaryKey(TMatrixX record);
    
    TMatrixX findXvalues(@Param("caseID") Integer caseID,@Param("field")Integer field);
    
    TMatrixX selectXTitleByfield(@Param("field")Integer field);
}